home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
amac33.arc
/
SR.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-04-28
|
674b
|
30 lines
@echo off
rem SR.BAT for NON-case sensitive search/replace Mon 10-29-1990
rem Requires FGREP.COM
rem Requires INPUT.COM
rem "Enter" without any search or replace text terminates batch file
CLS
INPUT Search Text=/b
IF Errorlevel=1 goto END
SET FGS=%ANS%
ECHO
INPUT Replacement Text=/b
IF Errorlevel=1 goto END
SET FGR=%ANS%
SET >c:$
ECHO
ECHO Searching For Files Containing "%FGS%" To Replace With "%FGR%"...
ECHO ******** NON-CASE SENSITIVE SEARCH/REPLACE ********
ECHO
BREAK on
FGREP -f "%FGS%" @SRCH-FG.LST >c:$.ql
BREAK off
ECHO
COPY c:$.ql c:!
Q.EXE c:! /ESRCH21.mac /LSRCH21.mac
ECHO
:END